﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SPaDevToolkit.Administration
{
    /// <summary>
    /// When applied to an assembly, specifies the type of the 
    /// SharePoint Service Application Proxy that should be invoked for CSLA Data Portal calls on all CSLA business objects in the assembly.
    /// </summary>
    [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
    public class SPaWebServiceApplicationProxyAttribute : Attribute
    {
        public SPaWebServiceApplicationProxyAttribute(Type proxyType)
        {
            _ProxyType = proxyType;
        }

        private Type _ProxyType = null;
        /// <summary>
        /// Type of service application proxy
        /// </summary>
        public Type ProxyType
        {
            get { return _ProxyType; }
            set { _ProxyType = value; }
        }
    }
}
